package BasicMethod;
public class StringBuffer_learn {
    // public static void main(String args[]){
    //     StringBuilder sb = new StringBuilder(10);
    //     sb.append("Runoob..");
    //     System.out.println(sb);  
    //     sb.append("!");
    //     System.out.println(sb); 
    //     sb.insert(8, "Java");
    //     System.out.println(sb); 
    //     sb.delete(5,8);
    //     System.out.println(sb);  
    // }

    public static void main(String args[]){
        StringBuffer sBuffer = new StringBuffer("菜鸟教程官网：");
        sBuffer.append("www");
        sBuffer.append(".runoob");
        sBuffer.append(".com");
        sBuffer.insert(3, "1234");
        sBuffer.replace(3, 6, "67");
        System.out.println(sBuffer);  
      }
}
